import Vue from 'vue';
import Router from 'vue-router';
import Goods from '@/components/goods';
import Ratings from '@/components/ratings';
import Seller from '@/components/seller';
import Error404 from '@/components/error/404';

Vue.use(Router);

export default new Router({
  mode: 'hash', // 默认 hash 模式
  linkActiveClass: 'active', // 全局配置 <router-link> 的默认『激活 class 类名』
  routes: [
    {
      path: '/',
      component: Error404
    },
    {
      path: '/goods',
      component: Goods
    },
    {
      path: '/ratings',
      component: Ratings
    },
    {
      path: '/seller',
      component: Seller
    }
  ]
});
